package com.laiketui.plugin.common.mapper;

import com.laiketui.plugin.common.domain.base.flashsale.FlashsaleConfigModel;
import com.laiketui.plugin.common.tool.db.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.Map;

public interface FlashsaleConfigModelMapper extends BaseMapper<FlashsaleConfigModel> {
    /**
     * 获取平台配置
     * @param storeId
     * @return
     */
    @Select("select * from lkt_flashsale_config where store_id = #{storeId} and mch_id = 0")
    Map<String, Object> getConfig(Integer storeId);
}
